package com.zw.mes.module.overview.service;

import com.zw.mes.module.assemble.entity.AsseAssemblyRoute;
import com.zw.mes.module.assemble.entity.AsseAssemblySheet;
import com.zw.mes.module.overview.mapper.OverviewMapper;
import com.zw.mes.module.overview.model.PlaCapacityModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 总览控 业务
 * @Author: China.wsg
 * @Date: 2021/06/02 14:12
 */
@Service
@SuppressWarnings("all")
public class OverviewService {

    @Autowired
    private OverviewMapper overviewMapper;

    /**
     * @Author wsg
     * @Date 16:20 2021/6/11
     * @Description 机加厂任务量列表
     **/
    public List<AsseAssemblySheet> findAssemblySheetByQuery(AsseAssemblySheet assemblySheet) {
        return overviewMapper.findAssemblySheetByQuery(assemblySheet);
    }

    /**
     * @Author wsg
     * @Date 16:20 2021/6/11
     * @Description 机加厂任务量 路线列表
     **/
    public List<AsseAssemblyRoute> findMacTaskRouteListBySheetId(Integer sheetId) {
        return overviewMapper.findMacTaskRouteListBySheetId(sheetId);
    }

    /**
     * @Author wsg
     * @Date 16:20 2021/6/11
     * @Description 涂装任务量查询 列表
     **/
    public List<AsseAssemblySheet> findCoatListByQuery(AsseAssemblySheet assemblySheet) {
        return overviewMapper.findCoatListByQuery(assemblySheet);
    }

    /**
     * @Author wsg
     * @Date 13:20 2021/6/11
     * @Description 铆焊产能统计 列表
     **/
    public List<PlaCapacityModel> findWeldStatsByQuery(PlaCapacityModel plaCapacityModel) {
        return overviewMapper.findWeldStatsByQuery(plaCapacityModel);
    }

    /**
     * @Author wsg
     * @Date 16:28/6/11
     * @Description 机加产能统计 列表
     **/
    public List<PlaCapacityModel> findCutStatsByQuery(PlaCapacityModel plaCapacityModel) {
        return overviewMapper.findCutStatsByQuery(plaCapacityModel);
    }

}
